package com.yexx.sc.microsvrapi.feign;

import com.yexx.sc.microsvrapi.domain.City;
import com.yexx.sc.microsvrapi.feign.fallback.CityFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(value = "microsvr-organization", fallbackFactory = CityFeignFallBack.class)
public interface CityFeign {

    @GetMapping("/city/list")
    List<City> list();
}
